FROM openjdk:17-jdk-alpine

MAINTAINER DLY <1181434433@qq.com>

ADD blog-application-1.0-SNAPSHOT.jar blog.jar

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN set -xe && apk --no-cache add ttf-dejavu fontconfig

#设置 GPT的上网代理
env http_proxy "http://172.17.0.1:20171"

env https_proxy "https://172.17.0.1:20171"

EXPOSE 7879

ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-jar", "blog.jar"]


